home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / rayshade-4.0.6.3 / include / makefile < prev    next >
Makefile  |  1991-10-19  |  13KB  |  452 lines

  1. #%#### makefile AUTOMATICALLY GENERATED ######
  2. #%############### DO NOT EDIT ################
  3. #%### EDIT makefile.src AND make config ######
  4. DEPTH = ../
  5. CONFIG = ../config/urt
  6. HERE = include/
  7. # Configuration file for the URT raster toolkit package.  Modify all 
  8. # entries in this file.
  9.  
  10. # This file should be the only thing you have to edit to configure the
  11. # toolkit for a new system.  If you are adding capabilities, please
  12. # keep this in mind and be sure to make those capabilities configurable
  13. # from this file.
  14.  
  15. # The file "makefile.hdr" contains code common to all makefiles.  It
  16. # should not be necessary to edit that file.
  17.  
  18. # The following define the available "hardware" display configuration.
  19. # Remove one # sign to define a symbol (i.e., leaving #define at the
  20. # beginning of the line.)
  21.  
  22. # Displays
  23. ##define APOLLO         Apollo computer display.
  24. ##define BOBCAT         HP "bobcat" 9000 series (with Starbase).
  25. ##define CX3D           Chromatics CX3D system.
  26. ##define FB             BRL extended frame buffer library.
  27. ##define GRINNELL    Grinnell GMR27 frame buffer.
  28. ##define HPQCR        Matrix QCR-Z attached to HP series 300.
  29. ##define IRIS           Silicon Graphics Iris 2000/3000.
  30. ##define IRIS4D         Silicon Graphics Iris/4D.
  31. ##define ORION        High-Level Hardware Orion display.
  32. #define SUNTOOLS       For Suns running SunTools.
  33. ##define TAAC1        Suns with TAAC-1 board.
  34. ##define X10        X10 Window system.
  35. #define X11            X11 Window system.
  36.  
  37. # Conversion programs
  38. #define ABEKASA60    Abekas A60 conversions.
  39. #define ABEKASA62    Abekas A62 conversions.
  40. #define CUBICOMP    Cubicomp conversions.
  41. #define GIF        GIF image conversions.
  42. #define GRAYFILES    Grayscale conversions.
  43. #define MACPAINT    Macpaint conversions.
  44. #define PBMPLUS    PBMPLUS conversions.
  45. #define POSTSCRIPT    Postscript conversions.
  46. #define SUNRASTER    For Sun raster conversions.
  47. #define TARGA        Targa format conversions.
  48. #define TIFF        TIFF image conversions.
  49. #define WASATCH        Wasatch Paintbox conversions.
  50. #define WAVEFRONT    Wavefront RLA file conversions.
  51.  
  52. # The dvirle program requires the Maryland MC-TeX library.  See the
  53. # README file in the cnv/tex subdirectory.
  54. ##define DVIRLE        Compile dvirle program
  55.  
  56. # Control C compilation flags.  Define according to your compiler.
  57.  
  58. ##define APOLLOCC    Apollo computer.
  59. ##define CRAY2CC        Cray-2 running UNICOS.
  60. ##define HPUX300CC    HP 9000/300 running HP-UX.
  61. ##define HPUX800CC    HP 9000/800 running HP-UX.
  62. ##define IBMR6000CC    IBM RS6000.
  63. ##define IRIS4DCC    Silicon Graphics Iris 4D.
  64. ##define IRISCC        Silicon Graphics Iris 2400/3000.
  65. ##define SUNCC        Sun 3 computers.
  66. ##define 386IXCC        SVr3 386/ix 2.2
  67.  
  68. # You can put any system dependent flags here.
  69. ExtraCFLAGS = 
  70.  
  71. # System specific or configuration parameters.  Define according to your
  72. # environment and desires.
  73.  
  74. #define ALL_MAN    Print/install all man pages.
  75. ##define CONST_DECL    If your compiler understands 'const' (ANSI)
  76. ##define FILE_NAME_14_CHARS    If filenames are limited to 14 characters.
  77. ##define NEED_BSTRING    Your libc does not have bcopy or bzero (Sys V probably)
  78. ##define NEED_GETOPT    Your libc does not have the getopt function (BSD)
  79. ##define NEED_SETLINEBUF    Your stdio does not have setlinebuf (Sys V)
  80. ##define NO_MAKE_MAKEFILE    If you don't want a "makefile" action.
  81. ##define NO_OPEN_PIPES    If file "names" "|..." and "*.Z" are not special.
  82. ##define NO_RANLIB    You don't have the ranlib program (Sys V)
  83. ##define NO_TOOLS    Don't build tool directory.
  84. ##define STDIO_NEEDS_BINARY    Your fopen() needs "b" specified for binary io
  85. ##define SYS_TIME_H    You include sys/time.h, not time.h (BSD)
  86. ##define SYS_V_SETPGRP    Your system has the SysV setpgrp() call.
  87. ##define USE_L_FLAG    Use -Llibdir -lrle instead of libdir/liblre.a.
  88. ##define USE_PROTOTYPES    Declare library functions with ANSI-C prototypes.
  89. #define USE_RANDOM    Your libc has the BSD random() function.
  90. ##define USE_STDARG    Use 'stdarg' instead of 'varargs' (ANSI).
  91. ##define USE_STDLIB_H    You have "stdlib.h".
  92. ##define USE_STRING_H    You have "string.h", not "strings.h"
  93. ##define VOID_STAR    Your C compiler understands the 'void *' declaration.
  94. #define XLIBINT_H    You have the include file <X11/Xlibint.h>.
  95.  
  96. # DEST is where all programs will be put.  Can be overridden for specific
  97. # directories below.
  98. # RI is where the include files live.  You probably shouldn't change this.
  99. # RL is where the tool directories find the RLE library.  You can change
  100. # this, but see the README instructions about making the toolkit in this
  101. # case.
  102.  
  103. # Path names not starting with a / are relative to this directory.
  104. # Path names starting with a / are absolute.
  105.  
  106. #defpath DEST    local
  107. #defpath RI    include
  108. #defpath RL    lib
  109.  
  110. # Note! LIB_DEST, INC_DEST, and MAN_DEST must be defined for the 
  111. # library, include files, or manual pages, respectively, to be
  112. # installed anywhere.
  113.  
  114. #defpath MAN_DEST /usr/man
  115. #defpath LIB_DEST /usr/lib
  116. #defpath GET_DEST /usr/local
  117. #defpath CNV_DEST /usr/local
  118. #defpath TOOLS_DEST /usr/local
  119. #defpath INC_DEST /usr/include/urt
  120.  
  121. # Control of formatting.  If your "roff" program needs to be piped to
  122. # something to print, set ROFFPIPE to (e.g.) "| lpr"
  123. ROFF = nroff
  124. ROFFOPT = -man
  125. ROFFPIPE = | lpr
  126.  
  127. # Stuff you like to have removed from directories to "make clean"
  128. OTHERJUNK = core *~ #*#
  129.  
  130. # Files needed for the various options above.
  131. #ifdef BOBCAT
  132. #@LIBBOBCAT = -ldd98700 -ldd98710 -ldd98721 -ldd98731 -ldd98736 -ldd300h -lddbyte -lsb1 -lsb2
  133. #endif
  134.  
  135. #ifdef CX3D
  136. # Where are the include files for the CX3D
  137. #@INCCX3D = /usr/site/include
  138. #@LIBCX3D = -lcx3d
  139. #endif
  140.  
  141. #ifdef DVIRLE
  142. #define DVIRLE_LIBSUBDIR    Defined if LIBMCTEX is under cnv/tex directory
  143. # The MC-TeX library.
  144. #@LIBMCTEX = lib/lib.a        # Note! relative to cnv/tex directory
  145. # Where to find the MC-TeX include files.
  146. #@INCMCTEX = h            # Note! relative to cnv/tex directory
  147. # where to find the font description file
  148. #@CONFFILE = /usr/local/lib/tex/fontdesc
  149. #endif
  150.  
  151. #ifdef FB
  152. #@LIBFB = /usr/brl/lib/libfb.a
  153. #endif
  154.  
  155. #ifdef GRINNELL
  156. # Library containing GMR27 functions.
  157. #@LIBGRINNELL = -lfb
  158. #endif
  159.  
  160. #ifdef HPQCR
  161. # HP device io library.
  162. #@LIBHPQCR = -ldvio
  163. #endif
  164.  
  165. #ifdef IRIS
  166. #@LIBIRIS = -Zg
  167. #endif
  168.  
  169. #ifdef IRIS4D
  170. #@LIBIRIS4D = -lgl_s
  171. #endif
  172.  
  173. #ifdef PBMPLUS
  174. # PBMDIR should refer to the root of your PBM source tree.
  175. PBMDIR = /n/phgasos/var/src/sun/pbm+
  176. INCPBMPLUS = -I$(PBMDIR)/ppm -I$(PBMDIR)/pgm -I$(PBMDIR)/pbm
  177. LIBPBMPLUS = $(PBMDIR)/ppm/libppm.a $(PBMDIR)/pgm/libpgm.a \
  178.         $(PBMDIR)/pbm/libpbm.a 
  179. #endif
  180.  
  181. #ifdef SUNRASTER|SUNTOOLS|TAAC1
  182. LIBSUNTOOLS_COM = -lsuntool -lsunwindow -lpixrect
  183. #endif
  184.  
  185. #ifdef SUNRASTER
  186. LIBSUNRASTER = $(LIBSUNTOOLS_COM)
  187. #endif
  188.  
  189. #ifdef SUNTOOLS
  190. LIBSUNTOOLS = $(LIBSUNTOOLS_COM)
  191. #endif
  192.  
  193. #ifdef TAAC1
  194. #@LIBTAAC1 = -ltaac1 $(LIBSUNTOOLS_COM)
  195. #endif
  196.  
  197. #ifdef TIFF
  198. # Location of tiff library and include files.  Relative to "cnv" directory.
  199. INCTIFF = 
  200. LIBTIFF = -ltiff
  201. #endif
  202.  
  203. #ifdef X10
  204. #@LIBX10 = -lX
  205. #@INCX10 = 
  206. #endif
  207.  
  208. #ifdef X11
  209. LIBX11 = -lX11
  210. INCX11 = 
  211. #endif
  212. ################ Beginning of makefile.hdr ################
  213. # Stuff that goes at the beginning of all the makefiles, but is not
  214. # configuration parameters should be in this file.  It is included
  215. # after the configuration file, and before the makefile.src.
  216.  
  217. # Where the C header files live (RI) and where the library lives (RL)
  218.  
  219. #emit RI
  220. RI = ../include
  221. #emit RL
  222. RL = ../lib
  223.  
  224. # Note -- DEST is not emitted here, it is emitted with a #set in the 
  225. # individual makefiles.  This allows each makefile to override DEST with
  226. # a subdirectory-specific value (from, e.g., GET_DEST).
  227.  
  228. # Reset these here because GNU make exports make variables when
  229. # make recurses.  These should be local.
  230. DIRS =
  231. ALLDIRS =
  232. PGMS =
  233.  
  234. # Machine dependent libraries
  235. #ifadd CRAY2CC        ExtraLIBS    -lm -lnet
  236. #ifadd IRIS4DCC        ExtraLIBS    -lbsd
  237. #ifadd IRIS4DCC        ExtraLIBS    -lmalloc
  238. #ifadd 386IXCC        ExtraLIBS    -linet
  239. #emit ExtraLIBS
  240. ExtraLIBS = 
  241.  
  242. #ifdef USE_L_FLAG
  243. #@LIBS = -L$(RL) -lrle $(DIRLIBS) $(ExtraLIBS)
  244. #else
  245. LIBS = $(RL)/librle.a $(DIRLIBS)  ${ExtraLIBS}
  246. #endif
  247.  
  248. # Machine dependent compiler flags
  249. #ifadd    CRAY2CC        MachFLAGS    -h olevel_1
  250. #ifadd    SUNCC        MachFLAGS    -f68881
  251. #ifadd    IRIS4DCC    MachFLAGS    -G 4 -Olimit 600
  252. #ifadd    HPUX300CC    MachFLAGS    -Dhpux -W c,-Nd2000,-Ns4000
  253. #ifadd    HPUX800CC    MachFLAGS    -Dhpux
  254. #ifadd    IBMR6000CC    MachFLAGS    -Dunix
  255. #emit MachFLAGS
  256. MachFLAGS = 
  257.  
  258. # CC Defines implied by configuration variables
  259. #ifadd    CONST_DECL    DEFFLAGS    -DCONST_DECL=const
  260. #ifnadd CONST_DECL    DEFFLAGS    -DCONST_DECL=
  261. #ifadd    NEED_BSTRING    DEFFLAGS    -DNEED_BSTRING
  262. #ifadd    NO_OPEN_PIPES    DEFFLAGS    -DNO_OPEN_PIPES
  263. #ifadd    SYS_TIME_H    DEFFLAGS    -DSYS_TIME_H
  264. #ifadd    SYS_V_SETPGRP    DEFFLAGS    -DSYS_V_SETPGRP
  265. #ifadd    USE_PROTOTYPES    DEFFLAGS    -DUSE_PROTOTYPES
  266. #ifadd    USE_RANDOM    DEFFLAGS    -DUSE_RANDOM
  267. #ifadd    USE_STDARG    DEFFLAGS    -DUSE_STDARG
  268. #ifadd    USE_STDLIB_H    DEFFLAGS    -DUSE_STDLIB_H
  269. #ifadd    USE_STRING_H    DEFFLAGS    -DUSE_STRING_H
  270. #ifadd    VOID_STAR    DEFFLAGS    -DVOID_STAR
  271. #emit DEFFLAGS
  272. DEFFLAGS =  -DCONST_DECL= -DUSE_RANDOM
  273.  
  274. CFLAGS = -O $(DFLAGS) $(DIRFLAGS) $(ExtraCFLAGS) $(IFLAGS) $(DEFFLAGS) \
  275.     $(MachFLAGS) 
  276. IFLAGS = -I. -I$(RI)
  277.  
  278. # System V make pays attention to the SHELL environment variable. Override it.
  279. SHELL = /bin/sh
  280.  
  281. ################ End of makefile.hdr ################
  282.  
  283. #quiet off
  284. #
  285. # Makefile for include subdirectory.
  286. # Only thing to do here is install the .h files somewhere if INC_DEST is
  287. # set.
  288. #
  289.  
  290. # No default action.
  291. default:
  292.  
  293. #ifdef INC_DEST
  294. #set DEST INC_DEST
  295. DEST = /usr/include/urt
  296. #endif
  297.  
  298. HDRS = \
  299.     exit_status.h \
  300.     pyramid.h \
  301.     rle.h \
  302.     rle_code.h \
  303.     rle_put.h \
  304.     rle_raw.h 
  305.  
  306. install: $(HDRS)
  307.     @sh -c "if test 'x$(DEST)' != x ; then \
  308.         if test 'x$(HDRS)' != x ; then eval \
  309.             'for hdr in $?; do \
  310.                 echo cp \$$hdr $(DEST)/\$$hdr ; \
  311.                 cp \$$hdr $(DEST)/\$$hdr; \
  312.             done' ; \
  313.         else \
  314.             true ; \
  315.         fi ; \
  316.     else \
  317.         true ; \
  318.     fi"
  319.     touch install
  320.  
  321. # Nothing to clean
  322. clean:
  323.  
  324. # Remove installed headers
  325. pristine:
  326.     @-if test "x$(DEST)" != x ; then eval \
  327.         'for hdr in $(HDRS); do \
  328.             echo rm -f $(DEST)/$$hdr; \
  329.             rm -f $(DEST)/$$hdr; \
  330.         done' ; \
  331.     else \
  332.         true ; \
  333.     fi
  334.     rm -f install
  335.  
  336. ################ Beginning of makefile.tlr ################
  337. # Stuff that goes at the end of all the makefiles, but is not
  338. # configuration parameters should be in this file.  It is included
  339. # after the makefile.src.
  340.  
  341. subdirs:
  342.     @sh -c "if test 'x$(DIRS)' != x ; then eval \
  343.         'set -e ; for dir in $(DIRS) ; do \
  344.             (cd \$$dir ; echo Make ${HERE}\$$dir ; \
  345.                  make $(MFLAGS) $(DIRMFLAGS) ) ; \
  346.         done' ; \
  347.       else \
  348.         true ; \
  349.       fi"
  350.  
  351. # Install all programs
  352. install-pgm: $(PGMS)
  353.     @sh -c "if test 'x$?' != x ; then eval \
  354.         'for pgm in $? ; do \
  355.             dpgm=\`basename \$$pgm .out\` ; \
  356.             echo cp \$$pgm $(DEST)/\$$dpgm ; \
  357.             cp \$$pgm $(DEST)/\$$dpgm; \
  358.         done' ; \
  359.     else \
  360.         true ; \
  361.     fi"
  362.     touch install-pgm
  363.  
  364. # Install subdirectories
  365. install-subdirs: subdirs
  366.     @sh -c "if test 'x$(DIRS)' != x  ; then eval \
  367.         'for dir in $(DIRS) ; do \
  368.             (cd \$$dir ; echo Install ${HERE}\$$dir ; \
  369.              make $(MFLAGS) $(DIRMFLAGS) install) ; \
  370.         done' ; \
  371.       else \
  372.         true ; \
  373.       fi"
  374.  
  375. #config reads the configuration file and munches the apropriate make files
  376. config: doit
  377.     ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  378.  
  379. config-subdirs: doit
  380.     @-if test 'x$(ALLDIRS)' != x ; then eval \
  381.         'for d in $(ALLDIRS) ; do \
  382.             ( cd $$d ; \
  383.               echo Configuring ${HERE}$$d ; \
  384.               ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}$$d/" \
  385.                     "${MFLAGS}" ) \
  386.         done' ; \
  387.     else \
  388.         true ; \
  389.     fi
  390.  
  391. doit:
  392.  
  393.  
  394. # Clean up installed stuff and binaries
  395. # pristine-pgm target invoked pristine target in dirs that make programs
  396. # pristine target in library directory is different.
  397. pristine-pgm: clean-pgm
  398.     @-if test 'x$(PGMS)' != x ; then eval \
  399.         'for pgm in $(PGMS); do \
  400.             dpgm=`basename $$pgm .out`; \
  401.             echo rm -f $(DEST)/$$dpgm; \
  402.             rm -f $(DEST)/$$dpgm; \
  403.         done' ; \
  404.     else \
  405.         true ; \
  406.     fi
  407.     @-if test 'x$(ALLDIRS)' != x ; then eval \
  408.         'for dir in $(ALLDIRS); do \
  409.         if test -d $$dir ; then \
  410.             (cd $$dir; echo Make ${HERE}$$dir pristine ; \
  411.              make $(MFLAGS) pristine); \
  412.         else \
  413.             true; \
  414.         fi; \
  415.         done' ; \
  416.     else \
  417.         true ; \
  418.     fi
  419.     -rm -f install install-pgm
  420.  
  421. # Clean up binaries on program directories.
  422. clean-pgm:
  423.     -rm -f $(PGMS) install*
  424.     -rm -f *.o *.out *.new
  425.     -rm -f $(OTHERJUNK)
  426.     @-if test 'x$(ALLDIRS)' != x ; then eval \
  427.         'for dir in $(ALLDIRS); do \
  428.         if test -d $$dir ; then \
  429.             (cd $$dir; echo Clean ${HERE}$$dir ; \
  430.              make $(MFLAGS) clean); \
  431.         else \
  432.             true; \
  433.         fi; \
  434.         done' ; \
  435.     else \
  436.         true ; \
  437.     fi
  438.  
  439. #ifndef NO_MAKE_MAKEFILE
  440. # Copy config action to here so that GNU make program will work.
  441. makefile:: makefile.src
  442.     ${DEPTH}Configure "${CONFIG}" "${DEPTH}" "${HERE}" "${MFLAGS}"
  443. #endif
  444.  
  445. # Keep people who like to 'make depend' happy.  Allow depend::
  446. # actions in specific makefiles if desired.
  447. depend::
  448.  
  449. ################ End of makefile.tlr ################
  450.